#!/bin/bash

# deciding whether the command succeeds
ls -l nofile.txt
if (( $? )); then rm nofile.txt ; fi
